import formBuilder from "@/comps/form/formBuilder";
import api from "../../ProductCategory/js/api";

export default {
    main:function () {
        let fb = formBuilder()
        fb.setLabelWidth(100)

        fb.addText("name","产品名称",9)
        fb.addCascade("catId","产品分类",3)
            .setApi(api.urlTree)

        return fb
    },
    other:function () {
        let fb = formBuilder()
        fb.setLabelWidth(100).setLabelPosition("right")

        return fb
    }
}